/**
 * 
 */
package org.jinion.result;

import java.sql.ResultSet;
import java.util.LinkedList;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jinion.exception.JinionException;
import org.jinion.result.table.DefaultTable;

/**
 * @author zhlmmc
 *
 */
public class DefaultResult extends AbstractResult {
	private static final Log log = LogFactory.getLog(DefaultResult.class);
	
	public DefaultResult(int affectedRows){
		this.affectedRows = affectedRows;
	}
	
	public DefaultResult(ResultSet resultSet){
		try {
			this.table = new DefaultTable(resultSet);
		} catch (JinionException e) {
			log.warn(e);
		}
	}

	public DefaultResult(LinkedList keys){
		this.generatedKeys = keys;
	}
}
